package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.UserTopicMapper;
import cn.edu.whu.irlab.model.UserTopic;
import cn.edu.whu.irlab.model.UserTopicKey;
import cn.edu.whu.irlab.service.UserTopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/8/5.
 */
@Service
public class UserTopicServiceImpl implements UserTopicService {

    @Autowired
    private UserTopicMapper utMapper;

    @Override
    public int deleteByPrimaryKey(UserTopicKey key) {
        return utMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(UserTopic record) {
        return utMapper.insert(record);
    }

    @Override
    public int insertSelective(UserTopic record) {
        return utMapper.insertSelective(record);
    }

    @Override
    public UserTopic selectByPrimaryKey(UserTopicKey key) {
        return utMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(UserTopic record) {
        return utMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserTopic record) {
        return utMapper.updateByPrimaryKey(record);
    }
}
